package cate.game.play.proce.result;

import cate.game.play.fighter.Fighter;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@SuppressWarnings("unchecked")
@NoteClass("行动结果")
public abstract class ActionResult<T> {

	@NoteField("结果类型")
	public byte type;

	@NoteField("目标的剧本临时ID")
	public int pid;

	public ActionResult() {}

	public T pidSet(int pid) {
		this.pid = pid;
		return (T) this;
	}

	public T pidSet(Fighter fighter) {
		this.pid = fighter.getPid();
		return (T) this;
	}


}
